// Game.h: interface for the CGame class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GAME_H__6BDB0504_D450_4754_A230_C364C3D2ECDD__INCLUDED_)
#define AFX_GAME_H__6BDB0504_D450_4754_A230_C364C3D2ECDD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"Block.h"
#define GAME_HEIGHT 20
#define GAME_WIDTH 10
enum GameState{Start,Pause,Dropping,Over};
class CGame  
{
	
public:	
	void SetRemovedLines(int lines);
	int GetRemovedLines();
	static void SetOffset(int x,int y);
	GameState GetState();
    static CSize m_Offset;
	GameState m_GameState;
	void ChangState(GameState state);
	int m_LinesCount;
	void RemoveLines();
	void PlaceBlock(CBlock& block);
	int *GetBoard(){return &m_Board[0][0];}
	int m_Board[GAME_HEIGHT+1][GAME_WIDTH+2];
 	CGame();
	void Initialize();
	void Display(CDC&dc);
	void OutPut();
 
	virtual ~CGame();

private:
	int m_RemovedLines;
};

#endif // !defined(AFX_GAME_H__6BDB0504_D450_4754_A230_C364C3D2ECDD__INCLUDED_)
